package com.fc.advbox.entity;

import com.fc.advbox.utils.validator.group.AddGroup;
import com.fc.advbox.utils.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by E7450 on 2018/7/25.
 */
@Getter
@Setter
@ToString
@ApiModel(value = "ADV_USER_TOKEN_EXTRACT_RECORD", description = "个人虚拟币提现记录")
public class UserTokenExtractRecordEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long tokenAccountId;   // 虚拟币账号ID
    @NotBlank(message="账户类型不能为空",  groups = {AddGroup.class, UpdateGroup.class})
    private String tokenType;      // 区块链 key类型 key / eos / pai
    private String txnId;          // 交易ID
    private Long tokenAddressId;   // 提现地址ID
    private BigDecimal amount;     // 提现数量
    private BigDecimal serviceCharge; // 手续费
    private BigDecimal actualAmount;  // 提现实际到账数量
    private int status;               // 状态 1- 成功 0-失败
    private Date createTime;          // 创建时间
}
